package com.zzg.springboot.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/api/logback")
public class LogBackController {
	private Logger logger = LoggerFactory.getLogger(this.getClass());

	@RequestMapping(value = "/message", method = { RequestMethod.GET })
	public void index() {
		logger.trace("日志输出 trace");
		logger.debug("日志输出 debug");
		logger.info("日志输出 info");
		logger.warn("日志输出 warn");
		logger.error("日志输出 error");
	}
}
